    localpath="/mirrors/CentOS"  
    mirror="mirrors.tuna.tsinghua.edu.cn::centos"  
#    rsync="rsync -avzH --delete"  
    rsync="rsync -avzH --delete"  
      
    verlist="7"  
    baselist="centosplus extras fasttrack os updates atomic cloud configmanagement cr dotnet nfv opstools paas rt sclo storage virt"  
    archlist="x86_64"  
      
    for ver in $verlist  
    do  
        for base in $baselist  
        do  
            for arch in $archlist  
            do  
                remote=$mirror/$ver/$base/$arch/  
                mkdir -pv $localpath/$ver/$base/$arch/  
                $rsync $remote $localpath/$ver/$base/$arch/  
            done  
        done  
    done  